<div class="container" ng-controller="loginCtl">

    <form class="form-signin" role="form" ng-submit="login();">

        <div class="alert alert-danger" role="alert" ng-show="invalid">登录失败!</div>
        <h2>请登录</h2>
        <label class="sr-only">用户名:</label>
        <input class="form-control" type="text" autofocus="" placeholder="请输入用户名" ng-model="user.name"/>
        <label class="sr-only">密码:</label>
        <input class="form-control" type="password" placeholder="密码" ng-model="user.password"/>
        <button class="btn btn-lg btn-primary btn-block">登录</button>
    </form>

</div>